package com.ohuang.demo

import android.app.Application
import android.content.Context
import android.util.Log
import com.ohuang.demo.ext.createLogProxy


class MyApp:Application() {

    private  val TAG = "MyApp"
    override fun attachBaseContext(base: Context?) {
        Log.d(TAG, "attachBaseContext: ")
        super.attachBaseContext(base)
    }

    override fun onCreate() {
        Log.d(TAG, "onCreate: ")
        super.onCreate()

        registerActivityLifecycleCallbacks(createLogProxy(tag = TAG))
    }
}